package com.memoir.jpa.repository;

import com.memoir.jpa.model.TodoDto;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * 自定义实现复杂单表查询
 *
 * @author ldm
 * @since 2017-10-22
 */
@Repository
//必须要有jpaRepository才行
public interface TodoJseRepository extends JpaRepository<TodoDto,Integer>,JpaSpecificationExecutor<TodoDto> {
    //public Object findOne(Specification spec)
    //public List findAll(Specification spec) {
    //public Page findAll(Specification spec, Pageable pageable) {
    //public List findAll(Specification spec, Sort sort) {
    //public long count(Specification spec) {
}
